import java.awt.image.PackedColorModel;

class BankAccount{
    String accountNumber; //账户
    double balance; //余额
    //定义了一个方法
    public void broadcast(String accountNumber,double balance){
        System.out.println("账户"+accountNumber+"的余额为"+balance+"元");
    }
}
public class Example03 {
    //先初始化这个类
    public static void main(String[]args){
        BankAccount ac=new BankAccount();
        ac.accountNumber="123456";
        ac.balance=-500;
        ac.broadcast(ac.accountNumber, ac.balance);
    }
}
